package com.mida.bms.report.vo;


import lombok.Data;

/**
 * <h1>结构化模板定义空间分页</h1>
 * <p>
 *
 * @author jian.li on 2021/3/31 18:50
 */
@Data
public class DocStructDefinitionSpacePage {
    private Long pageBegin;
    private Long pageEnd;
    private String search;

    public DocStructDefinitionSpacePage(Long pageNo,Long pageSize,String search) {
        if(pageNo < 0){
            pageNo = 1L;
        }
        this.pageBegin = (pageNo-1) * pageSize + 1;
        this.pageEnd = pageNo * pageSize;
        this.search = search;
    }
}
